﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"
    CodeFile="WIN10_2E.aspx.cs" Inherits="IFRS_WIN10_2E" %>

<%@ Register TagPrefix="cc1" Namespace="vsm.CustomControl" Assembly="vsm.CustomControl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        window.SetValueGLAccount = function (Value1, Value2) {
            document.getElementById("<%= hddGLAccountCode.ClientID %>").value = Value1;
            document.getElementById("<%= txtGLAccountCode.ClientID %>").value = Value1;
        }
        window.SetValueCostCenter = function (Value1, Value2) {
            document.getElementById("<%= hddCostCenter.ClientID %>").value = Value1;
            document.getElementById("<%= txtCostCenter.ClientID %>").value = Value2;
        }
        window.SetValueCurrency = function (Value1, Value2) {
            document.getElementById("<%= hddCurrencyCode.ClientID %>").value = Value1;
            document.getElementById("<%= txtCurrencyCode.ClientID %>").value = Value1;
        }
        window.SetValueVmLoadObjective = function (Value1, Value2) {
            document.getElementById("<%= hddLoanObjectiveID.ClientID %>").value = Value1;
            document.getElementById("<%= txtLoanObjectiveID.ClientID %>").value = Value2;
        }
        window.SetValueCustomer = function (Value1, Value2) {
            document.getElementById("<%= hddCustomerID.ClientID %>").value = Value1;
            document.getElementById("<%= txtCustomerID.ClientID %>").value = Value2;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <div class="colbtnConfirm">
                <asp:Button ID="btnCONFIRM" runat="server" Text="<%$Resources:ifrsButton,CONFIRM%>"
                    SkinID="NormalButton" OnClick="btnCONFIRM_Click" />
            </div>
            <asp:PlaceHolder ID="form_control" runat="server">
                <div class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:TextBox CssClass="datepicker" onblur="datebox_onblur( this, event );" ID="txtTransactionDate"
                                SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqTransactionDate" runat="server" />
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblAccountNo" runat="server" Text="<%$Resources:ifrsField,ACCOUNTNO%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:TextBox ID="txtAccountNo" MaxLength="50" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqAccountNo" runat="server" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblGLAccount" runat="server" Text="<%$Resources:ifrsField,GL_ACCOUNT%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxAutoComplete ID="txtGLAccountCode" runat="server" SkinID="TextBoxWithNoColor" MaxLength="50" TypeTextbox="Number" />&nbsp;
                            <asp:Button ID="btnGLAccountCode" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hddGLAccountCode" runat="server" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqGLAccount" runat="server" />
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblCostCenter" runat="server" Text="<%$Resources:ifrsField,COST_CENTER%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxAutoComplete ID="txtCostCenter" runat="server" SkinID="TextBoxWithNoColor" MaxLength="50" TypeTextbox="Number" />&nbsp;
                            <asp:Button ID="btnCostCenter" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hddCostCenter" runat="server" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqCostCenter" runat="server" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblContractStartDate" runat="server" Text="<%$Resources:ifrsField,ContractStartDate%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:TextBox CssClass="datepicker" onblur="datebox_onblur( this, event );" ID="txtContractStartDate"
                                SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqContractStartDate" runat="server" />
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblContractEndDate" runat="server" Text="<%$Resources:ifrsField,ContractEndDate%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:TextBox CssClass="datepicker" onblur="datebox_onblur( this, event );" ID="txtContractEndDate"
                                SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqContractEndDate" runat="server" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblPaymentConditionID" runat="server" Text="<%$Resources:ifrsField,PaymentConditionID%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:DropDownList ID="ddlPaymentConditionID" runat="server" SkinID="DropDownListWithNoColor" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqPaymentConditionID" runat="server" />
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblCurrencyCode" runat="server" Text="<%$Resources:ifrsField,CurrencyCode%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxAutoComplete ID="txtCurrencyCode" MaxLength="3" SkinID="TextBoxWithNoColor" runat="server"/>&nbsp;
                            <asp:Button ID="btnCurrencyCode" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hddCurrencyCode" runat="server" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqCurrencyCode" runat="server" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblPreReceivedInterest" runat="server" Text="<%$Resources:ifrsField,PreReceivedInterest%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxNumber ID="txtPreReceivedInterest" runat="server" SkinID="TextBoxWithNoColor"
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblLoanAmount" runat="server" Text="<%$Resources:ifrsField,LoanAmount%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxNumber ID="txtLoanAmount" runat="server" SkinID="TextBoxWithNoColor" AllowMaximumNumber="999999999" DigitDecimal="0" AllowNegativeNumber="True" TypeTextbox="Currency" />&nbsp;
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqLoanAmount" runat="server" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblCustomerID" runat="server" Text="<%$Resources:ifrsField,CustomerID%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxAutoComplete ID="txtCustomerID" runat="server" SkinID="TextBoxWithNoColor" MaxLength="50" TypeTextbox="Number" />&nbsp;
                            <asp:Button ID="btnCustomerID" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hddCustomerID" runat="server" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqCustomerID" runat="server" />
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblContractLoanTypeID" runat="server" Text="<%$Resources:ifrsField,ContractLoanTypeID%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:DropDownList ID="ddlContractLoanTypeID" runat="server" SkinID="DropDownListWithNoColor" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqContractLoanTypeID" runat="server" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblLoanObjectiveID" runat="server" Text="<%$Resources:ifrsField,LoanObjectiveID%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxAutoComplete ID="txtLoanObjectiveID" runat="server" SkinID="TextBoxWithNoColor" MaxLength="50" TypeTextbox="Number" />&nbsp;
                            <asp:Button ID="btnLoanObjectiveID" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hddLoanObjectiveID" runat="server" />
                            <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqLoanObjectiveID" runat="server" />
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblMisPaymentDate" runat="server" Text="<%$Resources:ifrsField,MisPaymentDate%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:TextBox CssClass="datepicker" onblur="datebox_onblur( this, event );" MaxLength="10"
                                ID="txtMisPaymentDate" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblApprovedAmount" runat="server" Text="<%$Resources:ifrsField,ApprovedAmount%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxNumber ID="txtApprovedAmount" runat="server" SkinID="TextBoxWithNoColor"
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblReservedAmount" runat="server" Text="<%$Resources:ifrsField,ReservedAmount%>"></asp:Label>&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxNumber ID="txtReservedAmount" runat="server" SkinID="TextBoxWithNoColor"
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                            <asp:Label ID="lblCollateralAmount" runat="server" Text="<%$Resources:ifrsField,CollateralAmount%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <cc1:TextboxNumber ID="txtCollateralAmount" runat="server" SkinID="TextBoxWithNoColor"
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                        </div>
                        <div class="collabel">
                        </div>
                        <div class="colinfo">
                            <asp:CheckBox ID="chkDebtAdjustFlag" runat="server" />
                            <asp:Label ID="lblDebtAdjustFlag" runat="server" Text="<%$Resources:ifrsField,DebtAdjustFlag%>"></asp:Label>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel">
                        </div>
                        <div class="colinfo">
                        </div>
                        <div class="collabel">
                            <asp:Label ID="lblStatus" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo">
                            <asp:TextBox ID="txtStatus" SkinID="ReadOnlyBox" runat="server"></asp:TextBox>
                        </div>
                    </div>
                </div>
            </asp:PlaceHolder>
            <div class="colbtn">
                <div class="center">
                    <asp:Button ID="btnSAVE" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" SkinID="NormalButton"
                        OnClick="btnSAVE_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>"
                        SkinID="NormalButton" OnClick="btnCANCEL_Click" />
                </div>
            </div>
        </div>
    </div>
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>
